<template>
    <view class="container">
        <view>
            <desc-wrapper :title="title" :desc="desc"></desc-wrapper>
            <view class="card-wrapper">
                <view class="card-content-item">
                    <view class="card-content_right">
                        <!--                          不知道要装什么东西 就没写-->
                    </view>
                </view>
            </view>
            <view class="bottom-btns">
                <view class="start-btn" @click="onClick_1">
                    <text class="">开始</text>
                </view>
                <view class="contact-btn"></view>
            </view>
        </view>
    </view>
</template>

<script>
export default {
    data() {
        return {
            title: ' 八字反查',
            desc: ' 通过指定的四柱八字，反向查出符合条件的公历年月日时。',
            form: {
                year_gan_zhi: '',
                month_gan_zhi: '',
                day_gan_zhi: '',
                hour_gan_zhi: '',
                liu_pai: '',
                start_year: '',
                sex: 0
            }
        }
    },
    methods: {
        onClick_1() {
            let that = this
            uni.request({
                url: 'https://cs.appzdm.com:3000/Gongju/bazifancha',
                method: 'POST',
                header: {
                    'Content-Type': 'application/x-www-form-urlencoded'
                },
                data: this.form,
                success: (res) => {
                    uni.navigateTo({
                        url: `/pages/bazifancha/detail?params=${JSON.stringify(res.data.data)}`
                    })
                },
                fail: (error) => {
                    console.error('Request Failed:', error)
                }
            })
        }
    }
}
</script>
<style lang="scss" scoped></style>
